import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/viwes/home/index'
import Overview from '@/viwes/overview/index'
import PlanIssued from '@/viwes/planIssued/index'

import Sheng from "@/viwes/planIssued/sheng.vue";
import City from "@/viwes/planIssued/city.vue";
import Main from "@/viwes/planIssued/main.vue";

import Confirmation from '@/viwes/confirmation/index'
import Indicators from '@/viwes/indicators/index'
import IndicatorsIssued from '@/viwes/indicatorsIssued/index'
import ProjectDecompose from '@/viwes/projectDecompose/index.vue'
import Report from '../viwes/report/index.vue'
// import vueRsource from 'vue-resource'

// Vue.use(vueRsource);
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/overview',
      name: 'Overview',
      component: Overview
    },
    {
      path: '/planIssued',
      name: 'planIssued',
      component: Main,
      children: [ 
        {
          path:"/",
          name:"/",
          component: PlanIssued
        }
        // , {
        //   path:"sheng",
        //   name:"sheng",
        //   component: Sheng
        // }
        // ,{
        //   path:"city",
        //   name:"city",
        //   component: City
        // }
      ]
    },
    {
      path: '/confirmation',
      name: 'confirmation',
      component: Confirmation
    },
    {
      path: '/confirmation',
      name: 'confirmation',
      component: Confirmation
    },
    {
      path: '/indicators',
      name: 'Indicators',
      component: Indicators
    },
    {
      path: '/indicatorsIssued',
      name: '指标下达',
      component: IndicatorsIssued,
    },
    {
      path: '/projectDecompose',
      name: '项目分解',
      component: ProjectDecompose,
    },
    {
      path: '/report',
      name: 'report',
      component: Report,
    }

  ]
})
